from mindquantum.core.circuit import Circuit

def create_quantum_circuit(n_qubits):
    """ Generate a Quantum Circuit for the given int 'n_qubits' and return it.
    """
    return Circuit(n_qubits)

def check(candidate):
    result = candidate(3)
    assert isinstance(result, Circuit)
    assert result.n_qubits == 3

    print("OK")

if __name__ == '__main__':
    check(create_quantum_circuit)